home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / djgpp / src / binutils.252 / gas / readme < prev    next >
Encoding:
Text File  |  1994-09-26  |  10.3 KB  |  294 lines

  1. -*- text -*-
  2.  
  3.         README for GAS
  4.       [cribbed largely from GDB's README file]
  5.  
  6. A number of things have changed since version 1 and the wonderful world of gas
  7. looks very different.  There's still a lot of irrelevant garbage lying around
  8. that will be cleaned up in time.  Documentation is scarce, as are logs of the
  9. changes made since the last gas release.  My apologies, and I'll try to get
  10. something useful.
  11.  
  12. Unpacking and Installation - Summary
  13. ====================================
  14.  
  15. See ../binutils/README.
  16.  
  17. Documentation
  18. =============
  19.  
  20. The GAS release includes texinfo source for its manual, which can be processed
  21. into `info' or `dvi' forms.
  22.  
  23. The DVI form is suitable for printing or displaying; the commands for doing
  24. this vary from system to system.  On many systems, `lpr -d' will print a DVI
  25. file.  On others, you may need to run a program such as `dvips' to convert the
  26. DVI file into a form your system can print.
  27.  
  28. If you wish to build the DVI file, you will need to have TeX installed on your
  29. system.  You can rebuild it by typing:
  30.  
  31.     cd gas-2.5/gas/doc
  32.     make as.dvi
  33.  
  34. The Info form is viewable with the GNU Emacs `info' subsystem, or the
  35. standalone `info' program, available as part of the GNU Texinfo distribution.
  36. To build the info files, you will need the `makeinfo' program.  Type:
  37.  
  38.     cd gas-2.5/gas/doc
  39.     make info
  40.  
  41. Specifying names for hosts and targets
  42. ======================================
  43.  
  44.    The specifications used for hosts and targets in the `configure'
  45. script are based on a three-part naming scheme, but some short
  46. predefined aliases are also supported.  The full naming scheme encodes
  47. three pieces of information in the following pattern:
  48.  
  49.      ARCHITECTURE-VENDOR-OS
  50.  
  51.    For example, you can use the alias `sun4' as a HOST argument or in a
  52. `--target=TARGET' option.  The equivalent full name is
  53. `sparc-sun-sunos4'.
  54.  
  55.    The `configure' script accompanying GAS does not provide any query
  56. facility to list all supported host and target names or aliases. 
  57. `configure' calls the Bourne shell script `config.sub' to map
  58. abbreviations to full names; you can read the script, if you wish, or
  59. you can use it to test your guesses on abbreviations--for example:
  60.  
  61.      % sh config.sub sun4
  62.      sparc-sun-sunos411
  63.      % sh config.sub sun3
  64.      m68k-sun-sunos411
  65.      % sh config.sub decstation
  66.      mips-dec-ultrix42
  67.      % sh config.sub hp300bsd
  68.      m68k-hp-bsd
  69.      % sh config.sub i386v
  70.      i386-unknown-sysv
  71.      % sh config.sub i786v
  72.      Invalid configuration `i786v': machine `i786v' not recognized
  73.  
  74. `config.sub' is also distributed in the GAS source directory
  75. (`gas-2.5', for version 2.5).
  76.  
  77.  
  78. `configure' options
  79. ===================
  80.  
  81.    Here is a summary of the `configure' options and arguments that are
  82. most often useful for building GAS.  `configure' also has several other
  83. options not listed here.
  84.  
  85.      configure [--help]
  86.                [--prefix=DIR]
  87.                [--srcdir=PATH]
  88.                [--norecursion] [--rm]
  89.                [--target=TARGET] HOST
  90.                [--with-OPTION]
  91.                [--enable-OPTION]
  92.  
  93. You may introduce options with a single `-' rather than `--' if you
  94. prefer; but you may abbreviate option names if you use `--'.
  95.  
  96. `--help'
  97.      Display a quick summary of how to invoke `configure'.
  98.  
  99. `-prefix=DIR'
  100.      Configure the source to install programs and files under directory
  101.      `DIR'.
  102.  
  103. `--srcdir=PATH'
  104.      *Warning: using this option requires GNU `make', or another `make'
  105.      that implements the `VPATH' feature.*
  106.      Use this option to make configurations in directories separate
  107.      from the GAS source directories.  Among other things, you can use
  108.      this to build (or maintain) several configurations simultaneously,
  109.      in separate directories.  `configure' writes configuration
  110.      specific files in the current directory, but arranges for them to
  111.      use the source in the directory PATH.  `configure' will create
  112.      directories under the working directory in parallel to the source
  113.      directories below PATH.
  114.  
  115. `--norecursion'
  116.      Configure only the directory level where `configure' is executed;
  117.      do not propagate configuration to subdirectories.
  118.  
  119. `--rm'
  120.      Remove the configuration that the other arguments specify.
  121.  
  122. `--target=TARGET'
  123.      Configure GAS for cross-assembling programs for the specified
  124.      TARGET.  Without this option, GAS is configured to assemble .o files
  125.      that run on the same machine (HOST) as GAS itself.
  126.  
  127.      There is no convenient way to generate a list of all available
  128.      targets.
  129.  
  130. `--enable-OPTION'
  131.      These flags tell the program or library being configured to 
  132.      configure itself differently from the default for the specified
  133.      host/target combination.  See below for a list of `--enable'
  134.      options recognized in the gas-2.5 distribution.
  135.  
  136. `HOST ...'
  137.      Configure GAS to run on the specified HOST.
  138.  
  139.      There is no convenient way to generate a list of all available
  140.      hosts.
  141.  
  142. `configure' accepts other options, for compatibility with configuring
  143. other GNU tools recursively; but these are the only options that affect
  144. GAS or its supporting libraries.
  145.  
  146. The `--enable' options recognized by software in the gas-2.5 distribution are:
  147.  
  148. `--enable-targets=...'
  149.      This causes one or more specified configurations to be added to those for
  150.      which BFD support is compiled.  Currently gas cannot use any format other
  151.      than its compiled-in default, so this option is not very useful.
  152.  
  153. `--enable-bfd-assembler'
  154.      This causes the assembler to use the new code being merged into it to use
  155.      BFD data structures internally, and use BFD for writing object files.
  156.      For most targets, this isn't supported yet.  For most targets where it has
  157.      been done, it's already the default.  So generally you won't need to use
  158.      this option.  See `BFD CONVERSION' in the file `gas/NOTES'.
  159.  
  160. Supported platforms
  161. ===================
  162.  
  163. At this point I believe gas to be ansi only code for most target cpu's.  That
  164. is, there should be relatively few, if any host system dependencies.  So
  165. porting (as a cross-assembler) to hosts not yet supported should be fairly
  166. easy.  Porting to a new target shouldn't be too tough if it's a variant of one
  167. already supported.
  168.  
  169. Native assembling should work on:
  170.  
  171.     sun3
  172.     sun4
  173.     386bsd
  174.     bsd/386
  175.     linux
  176.     m68k hpux 8.0 (hpux 7.0 may be a problem)
  177.     vax bsd, ultrix, vms
  178.     hp9000s300
  179.     decstation
  180.     iris
  181.     miniframe (m68k-sysv from Convergent Technologies)
  182.     i386-aix (ps/2)
  183.     hppa (hpux 4.3bsd, osf1)
  184.     rs6000
  185.     unixware
  186.     sco 3.2v4.2
  187.     sparc solaris 2.3
  188.  
  189. For cross-assemblers, I believe hosting to work on any of the machines listed
  190. above, plus:
  191.  
  192.     sun386i
  193.     at least some flavors of hpux (hpux 7.0 may be a problem)
  194.     most flavors of sysV
  195.  
  196. I believe that gas as a cross-assembler can currently be targetted for:
  197.  
  198.     386bsd
  199.     bsd/386
  200.     decstation-bsd (a.out format, to be used in BSD 4.4)
  201.     ebmon29k
  202.     go32 (DOS on i386, with DJGPP -- old a.out version)
  203.     h8/300, h8/500 (Hitachi)
  204.     hp9000/300
  205.     i386-aix (ps/2)
  206.     i960-coff
  207.     linux
  208.     mips ecoff (decstation-ultrix, iris, mips magnum, mips-idt-ecoff)
  209.     nindy960
  210.     powerpc
  211.     sco386
  212.     sun3
  213.     sun4
  214.     vax bsd or ultrix?
  215.     vms
  216.     vxworks68k
  217.     vxworks960
  218.     z8000 (Zilog)
  219.  
  220. MIPS ECOFF support has been added, but GAS will not run a C-style
  221. preprocessor.  If you want that, rename your file to have a ".S" suffix, and
  222. run gcc on it.  Or run "gcc -xassembler-with-cpp foo.s".
  223.  
  224. Support for ELF should work now for sparc, hppa, i386.
  225.  
  226. Support for ns32k, tahoe, i860, m88k may be suffering from bitrot.
  227.  
  228. If you try out gas on some host or target not listed above, please let me know
  229. the results, so I can update the list.
  230.  
  231. Compiler Support Hacks
  232. ======================
  233.  
  234. The assembler has been modified to support a feature that is potentially
  235. useful when assembling compiler output, but which may confuse assembly
  236. language programmers.  If assembler encounters a .word pseudo-op of the form
  237. symbol1-symbol2 (the difference of two symbols), and the difference of those
  238. two symbols will not fit in 16 bits, the assembler will create a branch around
  239. a long jump to symbol1, and insert this into the output directly before the
  240. next label: The .word will (instead of containing garbage, or giving an error
  241. message) contain (the address of the long jump)-symbol2.  This allows the
  242. assembler to assemble jump tables that jump to locations very far away into
  243. code that works properly.  If the next label is more than 32K away from the
  244. .word, you lose (silently); RMS claims this will never happen.  If the -K
  245. option is given, you will get a warning message when this happens.
  246.  
  247.  
  248. REPORTING BUGS IN GAS
  249. =====================
  250.  
  251. Bugs in gas should be reported to bug-gnu-utils@prep.ai.mit.edu.  They may be
  252. cross-posted to bug-gcc if they affect the use of gas with gcc.  They should
  253. not be reported just to bug-gcc, since I don't read that list, and therefore
  254. wouldn't see them.
  255.  
  256. If you report a bug in GAS, please remember to include:
  257.  
  258. A description of exactly what went wrong, and exactly what should have
  259. happened instead.
  260.  
  261. The type of machine (VAX, 68020, etc) and operating system (BSD, SunOS, DYNIX,
  262. VMS, etc) GAS was running on.
  263.  
  264. The configuration name(s) given to the "configure" script.  The
  265. "config.status" file should have this information.
  266.  
  267. The options given to GAS at run time.
  268.  
  269. The actual input file that caused the problem.
  270.  
  271. It is silly to report a bug in GAS without including an input file for GAS.
  272. Don't ask us to generate the file just because you made it from files you
  273. think we have access to.
  274.  
  275. 1. You might be mistaken.
  276. 2. It might take us a lot of time to install things to regenerate that file.
  277. 3. We might get a different file from the one you got, and might not see any
  278. bug.
  279.  
  280. To save us these delays and uncertainties, always send the input file for the
  281. program that failed.  A smaller test case that demonstrates the problem is of
  282. course preferable, but be sure it is a complete input file, and that it really
  283. does demonstrate the problem; but if paring it down would cause large delays
  284. in filing the bug report, don't bother.
  285.  
  286. If the input file is very large, and you are on the internet, you may want to
  287. make it avaliable for anonymous FTP instead of mailing it.  If you do, include
  288. instructions for FTP'ing it in your bug report.
  289.  
  290. If you expect to be contributing a large number of test cases, it would be
  291. helpful if you would look at the test suite included in the release (based on
  292. the Deja Gnu testing framework, available from the usual ftp sites) and write
  293. test cases to fit into that framework.  This is certainly not required.
  294.